﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EventHandlerExtension.EventsExtension
{
    public class EventExceptionArgs<T> : EventArgs where T : EventArgs
    {
        public object OriginalSender { get; set; }
        public EventHandler<T> Handler { get; set; }
        public T Args { get; set; }
        public Exception Exception { get; set; }

        public EventExceptionArgs(object originalSender, EventHandler<T> handler, T args, Exception exception)
        {
            OriginalSender = originalSender;
            Handler = handler;
            Args = args;
            Exception = exception;
        }
    }
}
